package com.lagou.demo.service.impl;

import com.lagou.demo.dao.IUserDao;
import com.lagou.demo.service.IDemoService;
import com.lagou.edu.mvcframework.annotations.LagouAutowired;
import com.lagou.edu.mvcframework.annotations.LagouService;
import com.lagou.edu.mvcframework.pojo.User;

import java.util.List;

@LagouService("demoService")
public class DemoServiceImpl implements IDemoService {
    @LagouAutowired
    private IUserDao userDao;

    @Override
    public String get(String name) {
        System.out.println("service 实现类中的name参数：" + name) ;
        return name;
    }

    @Override
    public boolean authorityUser(String username) {
        return true;
    }
}
